But sed can also operate on files, and its scripting language has advanced pattern-matching capabilities, so it's a great choice for performing any kind of fast text edits& such as a quick search and replace across a group of files. 但是sed还可以操作文件,并且其脚本语言具有高级模式匹配功能,因此它是用于执行任何类型的快速文本编辑的理想选择&例如对一组文件进行快速搜索和替换。
Sed uses regular expression syntax to search for and replace text selectively in the pattern space as well as to control which lines of text should be operated on by sets of editing commands. Sed使用正则表达式语法在模式空间中搜索并有选择地替换文本,以及决定对哪些文本行应用编辑命令。
These are called groups, and they make regular expression search and replace operations very powerful, and rather hard to read. 这些元素称为组,它们使得正则表达式搜索和替换操作的功能变得非常强大,但是却很难理解。
In most cases, the only way to identify all of these instances in all the specification documents is to do a textual search and replace on all the relevant documents. 在大多数情况下,在所有的规范文档中确定所有这些实例的唯一方法是进行本文搜索,并在所有相关文档中进行替换。
And making any change to one HTML page means you must search and replace parallel changes in all the other pages you've created. 而且修改一个HTML页,意味着您必须同时查找和替换其他已经创建的页面。
Search and replace to the rescue. 搜索并替换到救援系统。
In this article, you'll take a quick look at getting text from files and programs, simple transliterations using the tr command, and complex search and replace actions using the sed command. 在本文中,您将简要了解从文件和程序中获得文本、使用tr命令对其进行简单的转换、使用sed命令进行复杂的搜索和替换操作。
It adds many exciting convenience layer APIs, including the text navigation API, with which users are able to manipulate the text, image, table features and easily search and replace text content. 它增加了许多令人兴奋的便利层API,包括文本导航API。用户可以通过它们操作文本、图像和表格特性,还可以轻松地搜索和替换文本内容。
Complex search and replace with sed 使用sed进行复杂的搜索和替换
You need a field for search strings, another field for replace strings, a find button, and a replace button. 您需要一个用于搜索字符串的字段,一个用于替换字符串的字段,一个查找按钮,以及一个替换按钮。
The user can browse and search the intranet shop for alternative products ( perhaps while in contact with the customer), and can modify the order to replace or remove the unavailable items. 用户浏览和搜索内部网商店查找替代商品(或许通过与客户沟通确定),可以修改订单,以替代缺货物品或删除此类物品。
Common File Tasks& Search and Replace,-A class to do search and replace functions within a file and add a line to a file. 这个类可以在文件中执行搜索和替换功能,也可以在文件中增加一行。
To search for a word and replace it with another word, click Replace on the Edit menu 单击编辑菜单中的替换命令,可搜索某一字词并替换为另一字词
You can easily search for and replace special characters and document elements such as page breaks and tabs. 您还可以方便地搜索和替换特殊字符和文档元素,例如分页符和制表符。
You can also search for symbols using the find symbol tab of the find and replace window, or the find all references command on the object browser shortcut menus. 也可以使用“查找和替换”窗口的“查找符号”选项卡或“对象浏览器”快捷菜单上的“查找所有引用”命令搜索符号。
At the first look search and replace seems to be a good approach to start, but the names in a program are always in a context, which is very important to understand. 起先,查找并替换看起来是个不错的开始,但是程序中的名字通常是处于一个上下文中的,理解这一点非常重要。
Search for the collation_name information noted in the event log entry and replace it with a valid collation name. 请搜索事件日志项中记录的collationname信息并将其替换为有效的排序规则名称。
These options provide starting values for when a search and replace operation is activated. 该选项提供搜索和替换操作被激活时的起始值。
Finally, you can use a regular expression to search for and replace the tags. 最后,可以使用正则表达式来搜索和替换标记。
We have included a very useful search and replace tool to improve upon the functionality offered in IPB1. 基于IPB1的相应功能,我们改进并增强了这个非常实用的搜索及替换工具。
A simple search and replace on a variable. 一个在变数中搜寻与取代的简单函式。
Using a good search and replace capable text editor, you can quickly clean these up, making your styles and code optimized for fast loading. 使用好的搜索并替代功能的文本编辑器,你可以很快的清理这些东西,让你的样式和代码优化,更快的载入。
When specified during a search and replace operation, then sections of the character container sequence being searched that do match the regular expression, are not copied to the output string. 指定进行搜索和替换的操作中,字符容器序列中不被匹配的部分,不拷贝到输出字符。
With a simple search and replace you have to decide manually which occurrences should be renamed. 用简单地查找和替换,你必须手工决定应该重命名哪一个变量。
Of course, you can just search and replace normal text without needing to learn regular expressions. 当然无须任何正则表达式的知识,你仍然可以搜索及替换普通文本。
While this technique is more complex conceptually, it does allow for some interesting search and replace techniques. 当然,这种技术从概念上来说是比较复杂,它能支持一些更有意思的搜索和替换功能。